package com.shop.milk_tea_shop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品附加信息表
 * </p>
 *
 * @author yjw
 * @since 2024-06-16
 */
@TableName("item_add_table")
@ApiModel(value = "ItemAdd对象", description = "商品附加信息表")
public class ItemAdd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id（5位数，后80%）")
    @TableId(value = "add_id", type = IdType.AUTO)
    private Long addId;

    @ApiModelProperty("附加信息名称")
    private String addName;

    @ApiModelProperty("附加信息分类")
    private Long addCategoryId;

    @ApiModelProperty("状态（0：删除，1：正常）")
    private Integer status;

    @ApiModelProperty("单价")
    private Double price;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime alterTime;

    @ApiModelProperty("修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long alterUserId;

    public Long getAddId() {
        return addId;
    }

    public void setAddId(Long addId) {
        this.addId = addId;
    }

    public String getAddName() {
        return addName;
    }

    public void setAddName(String addName) {
        this.addName = addName;
    }

    public Long getAddCategoryId() {
        return addCategoryId;
    }

    public void setAddCategoryId(Long addCategoryId) {
        this.addCategoryId = addCategoryId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public LocalDateTime getAlterTime() {
        return alterTime;
    }

    public void setAlterTime(LocalDateTime alterTime) {
        this.alterTime = alterTime;
    }

    public Long getAlterUserId() {
        return alterUserId;
    }

    public void setAlterUserId(Long alterUserId) {
        this.alterUserId = alterUserId;
    }

    @Override
    public String toString() {
        return "ItemAdd{" +
            "addId = " + addId +
            ", addName = " + addName +
            ", addCategoryId = " + addCategoryId +
            ", status = " + status +
            ", createTime = " + createTime +
            ", createUserId = " + createUserId +
            ", alterTime = " + alterTime +
            ", alterUserId = " + alterUserId +
        "}";
    }
}
